<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>消息通知 - 1024导航</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981',
                        accent: '#F59E0B',
                        dark: '#1F2937',
                        light: '#F9FAFB'
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .card-hover {
                @apply transition-all duration-300 hover:shadow-lg hover:-translate-y-1;
            }
            .sidebar-active {
                @apply bg-primary/10 text-primary border-l-4 border-primary;
            }
            .text-gradient {
                @apply bg-clip-text text-transparent bg-gradient-to-r from-primary to-secondary;
            }
            .notification-unread {
                @apply bg-blue-50 border-l-4 border-primary;
            }
        }
    </style>
</head>

<body class="bg-gray-50 font-sans text-gray-800">
    <!-- 顶部导航栏 -->
    <header class="sticky top-0 z-50 bg-white shadow-sm transition-all duration-300">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <div class="text-primary text-2xl font-bold">1024<span class="text-secondary">导航</span></div>
                <span class="hidden md:inline-block text-sm text-gray-500 bg-gray-100 px-2 py-1 rounded">v2.3</span>
            </div>

            <nav class="hidden md:flex items-center space-x-6">
                <a href="index.html" class="text-gray-600 hover:text-primary transition-colors">首页</a>
                <a href="resources.html" class="text-gray-600 hover:text-primary transition-colors">资源</a>
                <a href="tools.html" class="text-gray-600 hover:text-primary transition-colors">工具</a>
                <a href="community.html" class="text-gray-600 hover:text-primary transition-colors">社区</a>
                <a href="about.html" class="text-gray-600 hover:text-primary transition-colors">关于</a>
            </nav>

            <div class="flex items-center space-x-3">
                <div class="relative group">
                    <button
                        class="flex items-center space-x-2 px-3 py-1.5 rounded-full bg-gray-100 hover:bg-gray-200 transition-colors">
                        <img src="https://picsum.photos/id/1005/40/40" alt="用户头像"
                            class="w-8 h-8 rounded-full object-cover border-2 border-white">
                        <span class="hidden md:inline-block text-sm font-medium">张小明</span>
                        <i class="fa fa-angle-down text-gray-500"></i>
                    </button>
                    <div
                        class="absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-lg py-2 z-10 hidden group-hover:block">
                        <a href="profile.html" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">个人中心</a>
                        <a href="settings.html" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">账号设置</a>
                        <div class="border-t border-gray-100 my-1"></div>
                        <a href="#" class="block px-4 py-2 text-sm text-red-600 hover:bg-gray-100">退出登录</a>
                    </div>
                </div>
                <button class="md:hidden text-gray-600 text-xl">
                    <i class="fa fa-bars"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 页面标题 -->
    <section class="py-10 bg-gradient-to-b from-white to-gray-50 border-b border-gray-100">
        <div class="container mx-auto px-4">
            <div class="max-w-3xl mx-auto text-center">
                <h1 class="text-[clamp(1.8rem,5vw,2.5rem)] font-bold mb-4 text-gradient">消息通知</h1>
                <p class="text-gray-600">查看您的最新消息和通知</p>
            </div>
        </div>
    </section>

    <!-- 消息内容区 -->
    <section class="py-10">
        <div class="container mx-auto px-4">
            <div class="max-w-6xl mx-auto">
                <div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
                    <!-- 侧边栏 -->
                    <div class="lg:col-span-1">
                        <div class="bg-white rounded-xl shadow-sm overflow-hidden sticky top-24">
                            <!-- 用户信息 -->
                            <div class="p-6 border-b border-gray-100">
                                <div class="flex flex-col items-center">
                                    <img src="https://picsum.photos/id/1005/100/100" alt="张小明"
                                        class="w-20 h-20 rounded-full object-cover border-4 border-white shadow-sm mb-3">
                                    <h3 class="font-bold text-lg">张小明</h3>
                                    <p class="text-gray-500 text-sm mb-3">普通会员</p>
                                    <div class="w-full bg-gray-200 rounded-full h-1.5 mb-1">
                                        <div class="bg-primary h-1.5 rounded-full" style="width: 65%"></div>
                                    </div>
                                    <p class="text-gray-500 text-xs">积分：650/1000（距离下一等级还差350分）</p>
                                </div>
                            </div>

                            <!-- 导航菜单 -->
                            <div class="p-2">
                                <a href="profile.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-user-circle w-5 text-center mr-3"></i>
                                    <span>个人资料</span>
                                </a>
                                <a href="collections.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-bookmark w-5 text-center mr-3"></i>
                                    <span>我的收藏</span>
                                    <span
                                        class="ml-auto bg-gray-100 text-gray-600 text-xs px-2 py-0.5 rounded-full">12</span>
                                </a>
                                <a href="history.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-history w-5 text-center mr-3"></i>
                                    <span>浏览历史</span>
                                </a>
                                <a href="contributions.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-paper-plane w-5 text-center mr-3"></i>
                                    <span>我的贡献</span>
                                    <span
                                        class="ml-auto bg-gray-100 text-gray-600 text-xs px-2 py-0.5 rounded-full">8</span>
                                </a>
                                <a href="messages.html" class="flex items-center px-4 py-3 text-sm sidebar-active">
                                    <i class="fa fa-bell w-5 text-center mr-3"></i>
                                    <span>消息通知</span>
                                    <span
                                        class="ml-auto bg-red-500 text-white text-xs px-2 py-0.5 rounded-full">3</span>
                                </a>
                                <div class="border-t border-gray-100 my-1"></div>
                                <a href="settings.html"
                                    class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-cog w-5 text-center mr-3"></i>
                                    <span>账号设置</span>
                                </a>
                                <a href="#" class="flex items-center px-4 py-3 text-sm text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-question-circle w-5 text-center mr-3"></i>
                                    <span>帮助中心</span>
                                </a>
                            </div>
                        </div>
                    </div>

                    <!-- 主内容区 -->
                    <div class="lg:col-span-3">
                        <!-- 消息筛选 -->
                        <div class="bg-white rounded-xl shadow-sm p-6 mb-8">
                            <div class="flex flex-wrap justify-between items-center gap-4">
                                <div class="flex flex-wrap gap-2">
                                    <button
                                        class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
                                        全部消息
                                    </button>
                                    <button
                                        class="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors">
                                        系统通知
                                    </button>
                                    <button
                                        class="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors">
                                        资源更新
                                    </button>
                                    <button
                                        class="px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 transition-colors">
                                        社区互动
                                    </button>
                                </div>
                                <div>
                                    <button class="text-primary text-sm hover:underline flex items-center">
                                        <i class="fa fa-trash-o mr-1"></i> 清空已读消息
                                    </button>
                                </div>
                            </div>
                        </div>

                        <!-- 消息列表 -->
                        <div class="space-y-4">
                            <!-- 未读消息1 -->
                            <div class="bg-white rounded-xl shadow-sm overflow-hidden notification-unread">
                                <div class="p-5">
                                    <div class="flex justify-between items-start mb-3">
                                        <div class="flex items-start">
                                            <div
                                                class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center text-green-600 mr-4 flex-shrink-0">
                                                <i class="fa fa-check-circle"></i>
                                            </div>
                                            <div>
                                                <h3 class="font-medium text-gray-800">您提交的资源已通过审核</h3>
                                                <p class="text-gray-600 mt-1">您提交的「Markdown在线编辑器」已通过审核并收录到平台，感谢您的贡献！</p>
                                            </div>
                                        </div>
                                        <span class="text-xs text-gray-500">2小时前</span>
                                    </div>
                                    <div class="flex justify-end mt-3">
                                        <button class="text-sm text-primary hover:underline">
                                            查看详情
                                        </button>
                                    </div>
                                </div>
                            </div>

                            <!-- 未读消息2 -->
                            <div class="bg-white rounded-xl shadow-sm overflow-hidden notification-unread">
                                <div class="p-5">
                                    <div class="flex justify-between items-start mb-3">
                                        <div class="flex items-start">
                                            <div
                                                class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600 mr-4 flex-shrink-0">
                                                <i class="fa fa-comment"></i>
                                            </div>
                                            <div>
                                                <h3 class="font-medium text-gray-800">您的评论收到了回复</h3>
                                                <p class="text-gray-600 mt-1">
                                                    用户「李华」回复了您在「分享一个实用的设计技巧」中的评论："这个技巧真的很实用，谢谢分享！"</p>
                                            </div>
                                        </div>
                                        <span class="text-xs text-gray-500">昨天</span>
                                    </div>
                                    <div class="flex justify-end mt-3">
                                        <button class="text-sm text-primary hover:underline">
                                            查看回复
                                        </button>
                                    </div>
                                </div>
                            </div>

                            <!-- 未读消息3 -->
                            <div class="bg-white rounded-xl shadow-sm overflow-hidden notification-unread">
                                <div class="p-5">
                                    <div class="flex justify-between items-start mb-3">
                                        <div class="flex items-start">
                                            <div
                                                class="w-10 h-10 rounded-full bg-amber-100 flex items-center justify-center text-amber-600 mr-4 flex-shrink-0">
                                                <i class="fa fa-star"></i>
                                            </div>
                                            <div>
                                                <h3 class="font-medium text-gray-800">您收藏的资源有更新</h3>
                                                <p class="text-gray-600 mt-1">您收藏的「在线代码编辑器」已更新，新增了Python代码运行环境和代码分享功能。
                                                </p>
                                            </div>
                                        </div>
                                        <span class="text-xs text-gray-500">2天前</span>
                                    </div>
                                    <div class="flex justify-end mt-3">
                                        <button class="text-sm text-primary hover:underline">
                                            查看更新
                                        </button>
                                    </div>
                                </div>
                            </div>

                            <!-- 已读消息1 -->
                            <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                                <div class="p-5">
                                    <div class="flex justify-between items-start mb-3">
                                        <div class="flex items-start">
                                            <div
                                                class="w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center text-gray-600 mr-4 flex-shrink-0">
                                                <i class="fa fa-bullhorn"></i>
                                            </div>
                                            <div>
                                                <h3 class="font-medium text-gray-800">网站服务器升级完成</h3>
                                                <p class="text-gray-600 mt-1">本次服务器升级已完成，访问速度提升约50%，感谢您的耐心等待和支持。</p>
                                            </div>
                                        </div>
                                        <span class="text-xs text-gray-500">1周前</span>
                                    </div>
                                </div>
                            </div>

                            <!-- 已读消息2 -->
                            <div class="bg-white rounded-xl shadow-sm overflow-hidden">
                                <div class="p-5">
                                    <div class="flex justify-between items-start mb-3">
                                        <div class="flex items-start">
                                            <div
                                                class="w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center text-gray-600 mr-4 flex-shrink-0">
                                                <i class="fa fa-gift"></i>
                                            </div>
                                            <div>
                                                <h3 class="font-medium text-gray-800">您的账号积分已到账</h3>
                                                <p class="text-gray-600 mt-1">您上周的资源分享获得了50积分奖励，已自动添加到您的账号中，当前总积分650分。
                                                </p>
                                            </div>
                                        </div>
                                        <span class="text-xs text-gray-500">2周前</span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- 分页 -->
                        <div class="mt-8 flex justify-center">
                            <nav class="flex items-center space-x-1">
                                <button
                                    class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 text-gray-500 hover:bg-gray-50 disabled:opacity-50"
                                    disabled>
                                    <i class="fa fa-angle-left"></i>
                                </button>
                                <button
                                    class="w-9 h-9 flex items-center justify-center rounded-md bg-primary text-white">1</button>
                                <button
                                    class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:bg-gray-50">2</button>
                                <button
                                    class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:bg-gray-50">3</button>
                                <span class="w-9 h-9 flex items-center justify-center">...</span>
                                <button
                                    class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 hover:bg-gray-50">8</button>
                                <button
                                    class="w-9 h-9 flex items-center justify-center rounded-md border border-gray-200 text-gray-700 hover:bg-gray-50">
                                    <i class="fa fa-angle-right"></i>
                                </button>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- 底部区域 -->
    <footer class="bg-gray-800 text-gray-300 py-10 mt-10">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <h3 class="text-white text-lg font-semibold mb-4">1024导航</h3>
                    <p class="text-sm text-gray-400 mb-4">精选互联网优质资源，打造高效便捷的导航平台，助力你的工作与学习。</p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-github text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-twitter text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weixin text-xl"></i>
                        </a>
                    </div>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">快速链接</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="index.html" class="text-gray-400 hover:text-white transition-colors">首页</a></li>
                        <li><a href="resources.html" class="text-gray-400 hover:text-white transition-colors">资源分类</a>
                        </li>
                        <li><a href="tools.html" class="text-gray-400 hover:text-white transition-colors">实用工具</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">最新收录</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">热门推荐</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">帮助支持</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用指南</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">资源提交</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">常见问题</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">联系我们</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">举报不良信息</a></li>
                    </ul>
                </div>

                <div>
                    <h3 class="text-white font-medium mb-4">关于我们</h3>
                    <ul class="space-y-2 text-sm">
                        <li><a href="about.html" class="text-gray-400 hover:text-white transition-colors">网站介绍</a></li>
                        <li><a href="team.html" class="text-gray-400 hover:text-white transition-colors">团队成员</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">隐私政策</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">使用条款</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">免责声明</a></li>
                    </ul>
                </div>
            </div>

            <div class="border-t border-gray-700 mt-8 pt-6 text-center text-sm text-gray-500">
                <p>© 2023 1024导航. 本站资源仅供学习交流使用，如有侵权请联系删除。</p>
            </div>
        </div>
    </footer>

    <!-- 回到顶部按钮 -->
    <button id="backToTop"
        class="fixed bottom-6 right-6 w-12 h-12 rounded-full bg-primary text-white shadow-lg flex items-center justify-center opacity-0 invisible transition-all duration-300">
        <i class="fa fa-arrow-up"></i>
    </button>

    <script>
        // 回到顶部按钮功能
        const backToTopBtn = document.getElementById('backToTop');

        window.addEventListener('scroll', () => {
            if (window.scrollY > 300) {
                backToTopBtn.classList.remove('opacity-0', 'invisible');
                backToTopBtn.classList.add('opacity-100', 'visible');
            } else {
                backToTopBtn.classList.remove('opacity-100', 'visible');
                backToTopBtn.classList.add('opacity-0', 'invisible');
            }

            // 导航栏滚动效果
            const header = document.querySelector('header');
            if (window.scrollY > 50) {
                header.classList.add('py-2', 'shadow');
                header.classList.remove('py-3', 'shadow-sm');
            } else {
                header.classList.add('py-3', 'shadow-sm');
                header.classList.remove('py-2', 'shadow');
            }
        });

        backToTopBtn.addEventListener('click', () => {
            window.scrollTo({
                top: 0,
                behavior: 'smooth'
            });
        });
    </script>
</body>

</html>